﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BasicCMS.Logging.Impl
{
    /// <summary>
    /// 默认日志工厂
    /// </summary>
    [ComponentRegistry(Lifetime.Singleton, "logger", "default", IsDefault = true)]
    public class NullLoggerFactory : ILogFactory
    {
        public ILog GetLogger(string name)
        {
            return new NullLogger();
        }

        public ILog GetLogger(Type type)
        {
            return new NullLogger();
        }

        public ILog GetLogger<T>()
        {
            return new NullLogger();
        }

        public string Alias
        {
            get { return "null"; }
        }
    }
}
